package ${package.Mapper};

import ${superMapperClassPackage};
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${package.Entity}.${entity};
<#if "true" == cfg.createPage>
import com.han.fu.api.business.model.ao.${entity}PageAo;
import com.han.fu.api.business.model.vo.${entity}Vo;
</#if>
<#if "true" == cfg.createStats>
import com.han.fu.api.business.model.ao.${entity}StatsAo;
import com.han.fu.api.business.model.vo.${entity}StatsVo;
</#if>
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ${table.comment!}Mapper接口
 *
 * @author ${author}
 * @date ${date}
 */
@Mapper
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
<#if "true" == cfg.createPage>

    /**
     * ${table.comment!}分页查询
     *
     * @param ao 分页查询条件
     * @return Page<${entity}Vo> 分页数据
     */
    Page<${entity}Vo> query${entity}Page(${entity}PageAo ao);
</#if>
<#if "true" == cfg.createStats>

    /**
     * ${table.comment!}统计查询
     *
     * @param ao 查询条件
     * @return List<${entity}StatsVo> 统计数据
     */
    List<${entity}StatsVo> query${entity}Stats(${entity}StatsAo ao);
</#if>
}
